Some minimal theme fixes for focus drawing
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 Oct 2017 22:35:32 +0000 (18:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Oct 2017 22:35:32 +0000 (18:35 -0400)
We don't want focus rectangles everywhere, so set them up
explicitly for the widgets where we want them, and only
if focus(visible) is set.

gtk/theme/Adwaita/_common.scss

index 40aaa147373fc1b62912944915bed681a30ae28b..6d44ed80f74a6fba1cbf1f33f48a4e6d67261342 100644 (file)
@@ -13,7 +13,12 @@ $button_transition: all 200ms $ease-out-quad;
   -gtk-secondary-caret-color: $selected_bg_color
 }
 
-*:focus {
+button:focus(visible),
+checkbutton:focus(visible),
+radiobutton:focus(visible),
+switch:focus(visible),
+scale:focus(visible),
+label:focus(visible) {
   // We use the outline properties to signal the focus properties
   // to the adwaita engine: using real CSS properties is faster,
   // and we don't use any outlines for now.